package com.baymax.study.security;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

/**
 * @see <a href=https://blog.csdn.net/weixin_43847283/article/details/124075302>SpringSecurity详解</a>
 */
@SpringBootApplication
@EnableGlobalMethodSecurity(prePostEnabled = true) // 开启security授权
@MapperScan("com.baymax.study.security.domain.repository")
public class SecurityApplication {
    public static void main(String[] args) {
        SpringApplication.run(SecurityApplication.class,args);
    }
}

